package com.example.flowable.model;

import lombok.Data;

@Data
public class ResultDTO<T> {
    private Integer status;

    private String msg;

    private T data;

    private Integer totals;

    public ResultDTO<T> buildResultDTO(Integer status, String msg, T data, Integer totals) {
        this.setData(data);
        this.setMsg(msg);
        this.setStatus(status);
        this.setTotals(totals);
        return this;
    }
}
